<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.xxxx.com" prefix="permission"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="path" value="${pageContext.request.contextPath}"></c:set>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>学员列表</title>
<link rel="stylesheet" href="${path }/resources/css/bootstrap.min.css" />
<link rel="stylesheet"
	href="${path }/resources/js/bootstrap3-editable/css/bootstrap-editable.css" />
<link rel="stylesheet"
	href="${path }/resources/css/font-awesome.min.css" />
<link rel="stylesheet"
	href="${path }/resources/js/layer/skin/default/layer.css" />
<link rel="stylesheet"
	href="${path }/resources/js/bootstrap-table/bootstrap-table.css" />
</head>
<body>
	<div style="margin-left: auto; margin-right: auto; width: 95%">
		<div class="row">
			<div id="toolbar">
				<form class="form-inline" role="form">
					<input type="hidden" value="${zx_opr}" name="opr" id="opr">
					<div class="form-group">
					<div class="form-group">
								<label class="sr-only" for="searcher_date">时间</label>
								<div class="input-group">
									<div class="input-group-addon">时间</div>
									<input class="form-control form_datetime" id="search_zxDate"
										name="search_zxDate" type="text" placeholder="请输入时间">
								</div>
							</div>
						<div class="form-group">
							<label class="sr-only" for="searcher_name">咨询师</label>
							<div class="input-group">
								<div class="input-group-addon">咨询师</div>
								<select class="form-control" name="searcher_zxId"
									id="searcher_zxId">
									<option value="">--请选择咨询师--</option>
									<c:if test="${userMap != null }">
										<c:forEach var="userMap" items="${userMap}">
											<option value="${userMap.user_id}">${userMap.user_name}</option>
										</c:forEach>
									</c:if>
								</select>
							</div>
						</div>
					</div>
					<button type="button" class="btn btn-primary queryButton"
						id="search">查询</button>
				</form>
			</div>
			<div class="col-xs-12">
				<div class="row">
					<div class="col-xs-12">

						<div style="position: absolute; top: 15px" id="btns">
							<permission:each
								items="${sessionScope.loginUser.permissionList }" type="emp"
								var="permission">
								<a href="#" class="btn ${permission.color }  btn-sm"
									data-code="${permission.code }"> <i
									class="${permission.icon }"></i>${permission.name}
								</a>
							</permission:each>
						</div>
						<table id="table"></table>
					</div>
				</div>
			</div>
		</div>
	</div>
	<%@ include file="../common.jsp"%>
	<script src="${path }/resources/js/emp/list_zx_month.js"></script>
	<script type="text/javascript">
		$(function() {
			//时间插件引入
			laydate({
				elem : '#search_zxDate',
				value : new Date(),
				format: 'YYYY-MM'
			})
		})
		// 设置最小可选的日期
		function minDate() {
			var now = new Date();
			return now.getFullYear() + "-" + (now.getMonth() + 1) + "-"
					+ now.getDate();
		}
	</script>
</body>
</html>